set :application, "uwrailstodo-read-only"
set :repository,  "http://uwrailstodo.googlecode.com/svn/trunk/"
# set :ssh_options, { :forward_agent => true }
# https://uwrailstodo.googlecode.com/svn/trunk/ uwrailstodo --username holtonma
# https://uwrailstodo.googlecode.com/svn/trunk/ uwrailstodo --username sdame172

# If you aren't deploying to /u/apps/#{application} on the target
# servers (which is the default), you can specify the actual location
# via the :deploy_to variable:
set :deploy_to, "/var/local/#{application}"
set :use_sudo, false

# If you aren't using Subversion to manage your source code, specify
# your SCM below:
#set :scm, :subversion

role :app, "root@ec2-67-202-18-119.compute-1.amazonaws.com" #app
role :web, "root@ec2-67-202-18-119.compute-1.amazonaws.com" #web
role :db, "root@ec2-67-202-18-119.compute-1.amazonaws.com", :primary => true

task :setup do
  transaction do
    symlink
  end
end

task :symlink do
  on_setup { run "mkdir -p /var/local/uwrailstodo-read-only/shared/pids; mkdir -p /var/local/uwrailstodo-read-only/shared/log" }
end